@extends('home.liuyan')
@section('content')
<style type="text/css">


    a img{
        width: 100%;
        height: 100%;
    }
</style>
<div style="width:1000px;margin:0 auto;">
<div style="margin-left:750px;"><a href="{{url('home/forum/add')}}"><button>点击发表留言</button></a></div>
@foreach($data as $row)
<div style=" height:10px;"></div>
<div class="row" style="margin:0 auto; width:800px;">
                <div class="col-md-8">
                    <!-- Box Comment -->
                    <div class="box box-widget">
                        <div class='box-header with-border'>
                            <div class='user-block'>
                                <img class='img-circle' src="{{asset($row -> upic)}}" alt='user image'>
                                <span class='username' style="postion:abs" >{{$row -> uid -> name}}</span>
                                <span class='description'>{{$row -> created_at}}</span>
                            </div><!-- /.user-block -->
                        </div><!-- /.box-header -->
                        <div class='box-body' style="width:600px;">
                            <a title="点击进行留言评论" style="text-decoration:none;width:600px;" href=" {{ url('home/forum/detail')}}/{{$row -> id}}">{!! $row -> fmpost !!}</a>
                            <button  class="sub" fid="{{$row -> id}}" class='btn btn-default btn-xs'><span style="color:red">@if($row -> dian)
                            {{$row -> dian}}@else 0 @endif  </span><i class='fa fa-thumbs-o-up'></i> Like</button>
                            <a href="{{ url('home/forum/detail')}}/{{$row -> id}}"><button style="margin-left:630px;" class='btn btn-default btn-xs'><i class='fa fa-thumbs-o-up'></i>评论</button></a>
                        </div><!-- /.box-body -->

                    </div><!-- /.box -->
                </div><!-- /.col -->

</div><!-- /.row -->
<div class="clear"></div>
@endforeach
</div>
@endsection('content')